﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ws_appPrivada/msContenido.Master" AutoEventWireup="true" CodeBehind="wBusqProveedor.aspx.cs" Inherits="SRPCENTRIA.ws_appPrivada.wBusqProveedor" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="upprincipal" runat="server">
    <ContentTemplate>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="3"><img  src="../images/space.gif" width="5" height="10" /></td>
      </tr>
      <tr>
        <td width="14">&nbsp;</td>
        <td bgcolor="#FFFFFF">
        <h1>Búsqueda DE Proveedor 
            <asp:Label ID="lblTitulo" runat="server" Text=""></asp:Label></h1>
        <div class="round"><span class="top"><span></span></span>
          <div class="contenido">
<table width="80%" cellpadding="2" cellspacing="2">
    <tr>
        <td>Razón&nbsp;Social</td>
        <td>:</td>
    <td colspan="4">
        <asp:TextBox ID="txtrazonsocial" runat="server" CssClass="formularios"  
            Width="100%" MaxLength="80" onKeyPress="return ValidarRazonSocial(event)" ></asp:TextBox>
    </td>
    </tr>
  <tr>
    <td>Tipo&nbsp;de&nbsp;Identificación</td>
    <td>:</td>
    <td>
            <asp:DropDownList ID="ddltipoidentificacion" runat="server" 
            CssClass="formularios" 
            onselectedindexchanged="ddltipoidentificacion_SelectedIndexChanged" 
            AutoPostBack="True" Enabled="False">
        </asp:DropDownList>
                <asp:TextBox ID="txtidentificacion" runat="server" CssClass="formularios" 
                MaxLength="11" ></asp:TextBox>
        <cc1:FilteredTextBoxExtender ID="FtbeNumIdent" runat="server" 
            TargetControlID="txtidentificacion" FilterType="Numbers">
        </cc1:FilteredTextBoxExtender>
    </td>
    <td>
    Key&nbsp;Word
    </td>
    <td>:</td>
    <td>
     <asp:TextBox ID="txtkeyword" runat="server" CssClass="formularios" 
            MaxLength="50" Width="100%"></asp:TextBox>
    </td>
    </tr>
</table>
<%--<div class="contenedor">
<div class="txtPanel"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="140"><strong>Búsqueda Avanzada</strong>
    <asp:LinkButton ID="lbbusquedaavanzada" runat="server" 
            onclick="lbbusquedaavanzada_Click">
    <img  src="../images/ico_down.png" width="18" height="18" hspace="4" border="0" align="absmiddle" />
    </asp:LinkButton>
    </td>
    <td><hr  size="1"/></td>
  </tr>
</table></div>

<asp:Panel ID="pBusquedaAvanzada" runat="server" Visible="false">
<div class="descripcion">
<table width="100%" border="0" cellspacing="4" cellpadding="2">
  <tr>
    <td>Tipo de Empresa:</td>
    <td>&nbsp;</td>
    <td>Key Words:</td>
  </tr>
  <tr>
    <td>
        <asp:DropDownList ID="ddltipoempresa" runat="server" CssClass="formularios" >
        </asp:DropDownList>
    </td>
    <td>&nbsp;</td>
    <td>
        <asp:TextBox ID="txtkeyword" runat="server" CssClass="formularios" 
            MaxLength="50"></asp:TextBox>
      </td>
  </tr>
  <tr>
    <td>Clase Persona: </td>
    <td>Rubro:</td>
    <td>Tipo de Transacción:</td>
  </tr>
  <tr>
    <td>
        <asp:DropDownList ID="ddltipopersona" runat="server" CssClass="formularios">
        </asp:DropDownList>
    </td>
    <td>
        <asp:DropDownList ID="ddltiporubro" runat="server" CssClass="formularios">
        </asp:DropDownList>
    </td>
    <td>
        <asp:DropDownList ID="ddltipotransaccion" runat="server" CssClass="formularios">
            <asp:ListItem Value="0">-- Seleccione --</asp:ListItem>
            <asp:ListItem Value="100000">Importaciones</asp:ListItem>
            <asp:ListItem Value="010000" >Exportaciones</asp:ListItem>
            <asp:ListItem Value="001000" >Transferencias</asp:ListItem>
            <asp:ListItem Value="000100">Pago de Servicios</asp:ListItem>
            <asp:ListItem Value="000010">Inversiones</asp:ListItem>
            <asp:ListItem Value="000001">Prestamo</asp:ListItem>
        </asp:DropDownList>
      </td>
  </tr>
  <tr>
    <td><strong>Domicilio Fiscal</strong></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Departamento:</td>
    <td>Provincia:</td>
    <td>Distrito:</td>
  </tr>
  <tr>
    <td>
        <asp:DropDownList ID="ddldepartamento" runat="server" CssClass="formularios" 
            onselectedindexchanged="ddldepartamento_SelectedIndexChanged" 
            AutoPostBack="True">
        </asp:DropDownList>
    </td>
    <td>
        <asp:DropDownList ID="ddlprovincia" runat="server" CssClass="formularios" 
            onselectedindexchanged="ddlprovincia_SelectedIndexChanged" 
            AutoPostBack="True">
        </asp:DropDownList>
    </td>
    <td>
        <asp:DropDownList ID="ddldistrito" runat="server" CssClass="formularios">
        </asp:DropDownList>
    </td>
  </tr>
</table>
</div>
</asp:Panel>
</div>--%>
<br />
<center>
              <asp:Button ID="btnbuscar" runat="server" Text="Buscar" CssClass="btn_envia" 
                  Height="26px" Width="100px" onclick="btnbuscar_Click" />
</center>


          </div>
<span class="bottom"><span></span></span> </div>
 
 
 
<div class="round">
          <div class="contenido">
          <h3>resultado</h3>
<p>
    &nbsp;</p>

 <asp:Panel ID="PanelDirecciones" runat="server" ScrollBars="Horizontal"   class="scrolltabla"
                                    Width="1000px" Height="100%">

    <asp:GridView ID="gvproveedores" runat="server" CssClass="tablaMain" 
        AutoGenerateColumns="False" AllowPaging="True" 
                  onpageindexchanging="gvproveedores_PageIndexChanging" 
         PageSize="30">
        <Columns>
            <asp:TemplateField HeaderText="Ver Detalle" Visible="False">
            <ItemTemplate>
                <asp:HyperLink ID="hlver" runat="server" NavigateUrl='<%# "~/ws_appPrivada/wInformBasica.aspx?idproveedor=" + Eval("colNumIdet") %>' >Ver</asp:HyperLink>
            </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Adjuntar Archivo" Visible="False">
            <ItemTemplate>
                <asp:HyperLink ID="hlveradjunto" runat="server" NavigateUrl='<%# "~/ws_appPrivada/wCargaArchivos.aspx?idproveedor=" + Eval("colNumIdet") %>' >Ir</asp:HyperLink>
            </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Proveedor Estable" Visible="False">
            <ItemTemplate>
                <asp:HyperLink ID="hlproveedorestable" runat="server" NavigateUrl='<%# "~/ws_appPrivada/wProveedorEstable.aspx?idproveedor=" + Eval("colNumIdet") %>' >Ir</asp:HyperLink>
            </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Enviar a Homologar" Visible="False">
            <ItemTemplate>
                <asp:HyperLink ID="hlhomologar" runat="server" NavigateUrl='<%# "~/ws_appPrivada/wEnviarHomologar.aspx?idproveedor=" + Eval("colNumIdet") %>' >Ir</asp:HyperLink>
            </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:BoundField DataField="Nombres" HeaderText="Razon Social" >
            <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="colNomTipIdent" HeaderText="Tipo Identificacion" >
            <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="colNumIdet" HeaderText="N° Identificacion" >
            <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="colKeyWord" HeaderText="KeyWord" />
            <asp:BoundField DataField="colEstado" HeaderText="Estado" >
            <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="colTelefono" HeaderText="Telefono" />
            <asp:BoundField DataField="colTelExtension" HeaderText="Telf Extension" 
                Visible="False" >
            <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="colFax" HeaderText="Fax" />
            <asp:BoundField DataField="colFaxExtension" HeaderText="Fax Extension" 
                Visible="False" >
            <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="colNumCelular" HeaderText="Celular" />
            <asp:BoundField DataField="colEmail" HeaderText="Email" />
            <asp:BoundField DataField="colNomClasPers" HeaderText="Clase Persona" >
            <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="colNomTipEmp" HeaderText="Tipo Empresa" >
            <HeaderStyle Wrap="False" />
            </asp:BoundField>


        </Columns>
        <SelectedRowStyle Font-Bold="True" ForeColor="#66CCFF" BackColor="#0033CC" />
    </asp:GridView>
  </asp:Panel>
</div>
<span class="bottom"><span></span></span> </div>
 
<p align="center">
 <%-- <button value="submit" class="submitBtn"><span><img  src="../images/ico_atras.gif" hspace="2" align="absmiddle" />Anterior</span></button> --%>
  <%--<button value="submit" class="submitBtn"><span><img  src="../images/ico_avanza.gif"  hspace="2" align="absmiddle" />Siguiente</span></button> --%>
    <asp:Button ID="btnaceptar" runat="server" Text="Aceptar" CssClass="btn_acepta" 
        Height="26px" Width="100px" onclick="btnaceptar_Click" Visible="False" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="btnlimpiar" runat="server" Text="Limpiar" CssClass="btn_envia" 
        Height="26px" Width="100px" onclick="btnlimpiar_Click" />

  <%--<button value="submit" class="submitBtn"><span><img  src="../images/ico_limpiar.gif" hspace="2" align="absmiddle" />Limpiar</span></button></p>--%>
</td>
      </tr>
    </table>
    </ContentTemplate>
    </asp:UpdatePanel>
<%--    </td>
    <td width="5"><img  src="../images/space.gif" width="10" height="10" /></td>
  </tr>
</table>--%>






    </form>





</asp:Content>
